// 初始化主题
const initTheme = () => {
  let theme = localStorage.getItem('theme') ? JSON.parse(localStorage.getItem('theme')).theme : 'light'
  document.documentElement.setAttribute('theme', theme)
}
initTheme()